    function targMap = targDataMap(),

    ;%***********************
    ;% Create Parameter Map *
    ;%***********************
    
        nTotData      = 0; %add to this count as we go
        nTotSects     = 1;
        sectIdxOffset = 0;

        ;%
        ;% Define dummy sections & preallocate arrays
        ;%
        dumSection.nData = -1;
        dumSection.data  = [];

        dumData.logicalSrcIdx = -1;
        dumData.dtTransOffset = -1;

        ;%
        ;% Init/prealloc paramMap
        ;%
        paramMap.nSections           = nTotSects;
        paramMap.sectIdxOffset       = sectIdxOffset;
            paramMap.sections(nTotSects) = dumSection; %prealloc
        paramMap.nTotData            = -1;

        ;%
        ;% Auto data (rtP)
        ;%
            section.nData     = 57;
            section.data(57)  = dumData; %prealloc

                    ;% rtP.DCVoltageSource_Amplitude
                    section.data(1).logicalSrcIdx = 0;
                    section.data(1).dtTransOffset = 0;

                    ;% rtP.PIDController_I
                    section.data(2).logicalSrcIdx = 1;
                    section.data(2).dtTransOffset = 1;

                    ;% rtP.PIDController3_I
                    section.data(3).logicalSrcIdx = 2;
                    section.data(3).dtTransOffset = 2;

                    ;% rtP.PIDController4_I
                    section.data(4).logicalSrcIdx = 3;
                    section.data(4).dtTransOffset = 3;

                    ;% rtP.PIDController_InitialConditionForIntegrator
                    section.data(5).logicalSrcIdx = 4;
                    section.data(5).dtTransOffset = 4;

                    ;% rtP.PIDController4_InitialConditionForIntegrator
                    section.data(6).logicalSrcIdx = 5;
                    section.data(6).dtTransOffset = 5;

                    ;% rtP.PIDController3_InitialConditionForIntegrator
                    section.data(7).logicalSrcIdx = 6;
                    section.data(7).dtTransOffset = 6;

                    ;% rtP.PIDController_P
                    section.data(8).logicalSrcIdx = 7;
                    section.data(8).dtTransOffset = 7;

                    ;% rtP.PIDController4_P
                    section.data(9).logicalSrcIdx = 8;
                    section.data(9).dtTransOffset = 8;

                    ;% rtP.PIDController3_P
                    section.data(10).logicalSrcIdx = 9;
                    section.data(10).dtTransOffset = 9;

                    ;% rtP.CompareToConstant_const
                    section.data(11).logicalSrcIdx = 10;
                    section.data(11).dtTransOffset = 10;

                    ;% rtP.CoulombViscousFriction_gain
                    section.data(12).logicalSrcIdx = 11;
                    section.data(12).dtTransOffset = 11;

                    ;% rtP.CoulombViscousFriction_offset
                    section.data(13).logicalSrcIdx = 12;
                    section.data(13).dtTransOffset = 12;

                    ;% rtP.RepeatingSequence_rep_seq_y
                    section.data(14).logicalSrcIdx = 13;
                    section.data(14).dtTransOffset = 13;

                    ;% rtP.DiscreteTimeIntegrator1_gainval
                    section.data(15).logicalSrcIdx = 14;
                    section.data(15).dtTransOffset = 16;

                    ;% rtP.DiscreteTimeIntegrator1_IC
                    section.data(16).logicalSrcIdx = 15;
                    section.data(16).dtTransOffset = 17;

                    ;% rtP.DiscreteTimeIntegrator_gainval
                    section.data(17).logicalSrcIdx = 16;
                    section.data(17).dtTransOffset = 18;

                    ;% rtP.DiscreteTimeIntegrator_IC
                    section.data(18).logicalSrcIdx = 17;
                    section.data(18).dtTransOffset = 19;

                    ;% rtP.DiscreteTimeIntegrator_gainval_ag5cij0zd5
                    section.data(19).logicalSrcIdx = 18;
                    section.data(19).dtTransOffset = 20;

                    ;% rtP.DiscreteTimeIntegrator_IC_gww3x4gjg5
                    section.data(20).logicalSrcIdx = 19;
                    section.data(20).dtTransOffset = 21;

                    ;% rtP.StateSpace_DS_param
                    section.data(21).logicalSrcIdx = 20;
                    section.data(21).dtTransOffset = 22;

                    ;% rtP.LookUpTable1_bp01Data
                    section.data(22).logicalSrcIdx = 21;
                    section.data(22).dtTransOffset = 94;

                    ;% rtP.Gain1_Gain
                    section.data(23).logicalSrcIdx = 22;
                    section.data(23).dtTransOffset = 97;

                    ;% rtP.Integrator_gainval
                    section.data(24).logicalSrcIdx = 23;
                    section.data(24).dtTransOffset = 98;

                    ;% rtP.DiscreteTimeIntegrator_gainval_mjgsuxrz21
                    section.data(25).logicalSrcIdx = 24;
                    section.data(25).dtTransOffset = 99;

                    ;% rtP.DiscreteTimeIntegrator_IC_mz4wlcvrk2
                    section.data(26).logicalSrcIdx = 25;
                    section.data(26).dtTransOffset = 100;

                    ;% rtP.Gain_Gain
                    section.data(27).logicalSrcIdx = 26;
                    section.data(27).dtTransOffset = 101;

                    ;% rtP.Integrator_gainval_ac2bwkmf4o
                    section.data(28).logicalSrcIdx = 27;
                    section.data(28).dtTransOffset = 102;

                    ;% rtP.Integrator_gainval_if4krzbtot
                    section.data(29).logicalSrcIdx = 28;
                    section.data(29).dtTransOffset = 103;

                    ;% rtP.Switch_Threshold
                    section.data(30).logicalSrcIdx = 29;
                    section.data(30).dtTransOffset = 104;

                    ;% rtP.Switch1_Threshold
                    section.data(31).logicalSrcIdx = 30;
                    section.data(31).dtTransOffset = 105;

                    ;% rtP.Switch2_Threshold
                    section.data(32).logicalSrcIdx = 31;
                    section.data(32).dtTransOffset = 106;

                    ;% rtP.Gain2_Gain
                    section.data(33).logicalSrcIdx = 32;
                    section.data(33).dtTransOffset = 107;

                    ;% rtP.Gain_Gain_hehkc3jgen
                    section.data(34).logicalSrcIdx = 33;
                    section.data(34).dtTransOffset = 108;

                    ;% rtP.Gain1_Gain_n3fx5vigfy
                    section.data(35).logicalSrcIdx = 34;
                    section.data(35).dtTransOffset = 109;

                    ;% rtP.Switch_Threshold_d3pcfftxzn
                    section.data(36).logicalSrcIdx = 35;
                    section.data(36).dtTransOffset = 110;

                    ;% rtP.Switch1_Threshold_jsou4lt4xc
                    section.data(37).logicalSrcIdx = 36;
                    section.data(37).dtTransOffset = 111;

                    ;% rtP.Saturation_UpperSat
                    section.data(38).logicalSrcIdx = 37;
                    section.data(38).dtTransOffset = 112;

                    ;% rtP.Saturation_LowerSat
                    section.data(39).logicalSrcIdx = 38;
                    section.data(39).dtTransOffset = 113;

                    ;% rtP.uLd_Gain
                    section.data(40).logicalSrcIdx = 39;
                    section.data(40).dtTransOffset = 114;

                    ;% rtP.Gain_Gain_cnsevagfns
                    section.data(41).logicalSrcIdx = 40;
                    section.data(41).dtTransOffset = 115;

                    ;% rtP.LqLd_Gain
                    section.data(42).logicalSrcIdx = 41;
                    section.data(42).dtTransOffset = 116;

                    ;% rtP.RLd_Gain
                    section.data(43).logicalSrcIdx = 42;
                    section.data(43).dtTransOffset = 117;

                    ;% rtP.uLq_Gain
                    section.data(44).logicalSrcIdx = 43;
                    section.data(44).dtTransOffset = 118;

                    ;% rtP.LdLq_Gain
                    section.data(45).logicalSrcIdx = 44;
                    section.data(45).dtTransOffset = 119;

                    ;% rtP.RLq_Gain
                    section.data(46).logicalSrcIdx = 45;
                    section.data(46).dtTransOffset = 120;

                    ;% rtP.lamLq_Gain
                    section.data(47).logicalSrcIdx = 46;
                    section.data(47).dtTransOffset = 121;

                    ;% rtP.Gain2_Gain_nink3v2kty
                    section.data(48).logicalSrcIdx = 47;
                    section.data(48).dtTransOffset = 122;

                    ;% rtP.SwitchCurrents_Value
                    section.data(49).logicalSrcIdx = 48;
                    section.data(49).dtTransOffset = 123;

                    ;% rtP.Constant_Value
                    section.data(50).logicalSrcIdx = 49;
                    section.data(50).dtTransOffset = 129;

                    ;% rtP.Constant2_Value
                    section.data(51).logicalSrcIdx = 50;
                    section.data(51).dtTransOffset = 130;

                    ;% rtP.Constant3_Value
                    section.data(52).logicalSrcIdx = 51;
                    section.data(52).dtTransOffset = 131;

                    ;% rtP.Constant_Value_ahnta5b1bi
                    section.data(53).logicalSrcIdx = 52;
                    section.data(53).dtTransOffset = 132;

                    ;% rtP.Constant1_Value
                    section.data(54).logicalSrcIdx = 53;
                    section.data(54).dtTransOffset = 133;

                    ;% rtP.Constant3_Value_bejh11f5do
                    section.data(55).logicalSrcIdx = 54;
                    section.data(55).dtTransOffset = 134;

                    ;% rtP.Constant4_Value
                    section.data(56).logicalSrcIdx = 55;
                    section.data(56).dtTransOffset = 135;

                    ;% rtP.Constant_Value_gnz10l4nxj
                    section.data(57).logicalSrcIdx = 56;
                    section.data(57).dtTransOffset = 136;

            nTotData = nTotData + section.nData;
            paramMap.sections(1) = section;
            clear section


            ;%
            ;% Non-auto Data (parameter)
            ;%


        ;%
        ;% Add final counts to struct.
        ;%
        paramMap.nTotData = nTotData;



    ;%**************************
    ;% Create Block Output Map *
    ;%**************************
    
        nTotData      = 0; %add to this count as we go
        nTotSects     = 1;
        sectIdxOffset = 0;

        ;%
        ;% Define dummy sections & preallocate arrays
        ;%
        dumSection.nData = -1;
        dumSection.data  = [];

        dumData.logicalSrcIdx = -1;
        dumData.dtTransOffset = -1;

        ;%
        ;% Init/prealloc sigMap
        ;%
        sigMap.nSections           = nTotSects;
        sigMap.sectIdxOffset       = sectIdxOffset;
            sigMap.sections(nTotSects) = dumSection; %prealloc
        sigMap.nTotData            = -1;

        ;%
        ;% Auto data (rtB)
        ;%
            section.nData     = 31;
            section.data(31)  = dumData; %prealloc

                    ;% rtB.doh1ukidqb
                    section.data(1).logicalSrcIdx = 0;
                    section.data(1).dtTransOffset = 0;

                    ;% rtB.bnvxvacbbl
                    section.data(2).logicalSrcIdx = 1;
                    section.data(2).dtTransOffset = 1;

                    ;% rtB.gumxvgfbxn
                    section.data(3).logicalSrcIdx = 2;
                    section.data(3).dtTransOffset = 2;

                    ;% rtB.i24nyf40tk
                    section.data(4).logicalSrcIdx = 3;
                    section.data(4).dtTransOffset = 10;

                    ;% rtB.bm2pphhktx
                    section.data(5).logicalSrcIdx = 4;
                    section.data(5).dtTransOffset = 16;

                    ;% rtB.ck12s04b5q
                    section.data(6).logicalSrcIdx = 5;
                    section.data(6).dtTransOffset = 17;

                    ;% rtB.fj3fao1c3u
                    section.data(7).logicalSrcIdx = 6;
                    section.data(7).dtTransOffset = 18;

                    ;% rtB.hn3dccr3ro
                    section.data(8).logicalSrcIdx = 7;
                    section.data(8).dtTransOffset = 19;

                    ;% rtB.khzjqq4aca
                    section.data(9).logicalSrcIdx = 8;
                    section.data(9).dtTransOffset = 20;

                    ;% rtB.of4xqa4iyq
                    section.data(10).logicalSrcIdx = 9;
                    section.data(10).dtTransOffset = 21;

                    ;% rtB.gys1h2d20i
                    section.data(11).logicalSrcIdx = 10;
                    section.data(11).dtTransOffset = 22;

                    ;% rtB.m0soobc2tx
                    section.data(12).logicalSrcIdx = 11;
                    section.data(12).dtTransOffset = 23;

                    ;% rtB.btnvqswzr5
                    section.data(13).logicalSrcIdx = 12;
                    section.data(13).dtTransOffset = 24;

                    ;% rtB.o3ipjb4ia1
                    section.data(14).logicalSrcIdx = 13;
                    section.data(14).dtTransOffset = 25;

                    ;% rtB.oehdg5tfvl
                    section.data(15).logicalSrcIdx = 14;
                    section.data(15).dtTransOffset = 26;

                    ;% rtB.ml1gl3cyt3
                    section.data(16).logicalSrcIdx = 15;
                    section.data(16).dtTransOffset = 27;

                    ;% rtB.d4er4shvvt
                    section.data(17).logicalSrcIdx = 16;
                    section.data(17).dtTransOffset = 28;

                    ;% rtB.kuqyy4l1im
                    section.data(18).logicalSrcIdx = 17;
                    section.data(18).dtTransOffset = 29;

                    ;% rtB.k344ayyian
                    section.data(19).logicalSrcIdx = 18;
                    section.data(19).dtTransOffset = 30;

                    ;% rtB.lbnbux40tm
                    section.data(20).logicalSrcIdx = 19;
                    section.data(20).dtTransOffset = 31;

                    ;% rtB.a31fuchwx4
                    section.data(21).logicalSrcIdx = 20;
                    section.data(21).dtTransOffset = 32;

                    ;% rtB.fgm2ey422o
                    section.data(22).logicalSrcIdx = 21;
                    section.data(22).dtTransOffset = 33;

                    ;% rtB.p3qdmqq2jr
                    section.data(23).logicalSrcIdx = 22;
                    section.data(23).dtTransOffset = 39;

                    ;% rtB.kblebvykwt
                    section.data(24).logicalSrcIdx = 23;
                    section.data(24).dtTransOffset = 40;

                    ;% rtB.lhq4adqmd0
                    section.data(25).logicalSrcIdx = 24;
                    section.data(25).dtTransOffset = 41;

                    ;% rtB.nai45kmsg3
                    section.data(26).logicalSrcIdx = 25;
                    section.data(26).dtTransOffset = 42;

                    ;% rtB.cis3ukuxpf
                    section.data(27).logicalSrcIdx = 26;
                    section.data(27).dtTransOffset = 43;

                    ;% rtB.mew0r2rmut
                    section.data(28).logicalSrcIdx = 27;
                    section.data(28).dtTransOffset = 44;

                    ;% rtB.eynh445hv1
                    section.data(29).logicalSrcIdx = 28;
                    section.data(29).dtTransOffset = 45;

                    ;% rtB.f0qbz1rzka
                    section.data(30).logicalSrcIdx = 29;
                    section.data(30).dtTransOffset = 46;

                    ;% rtB.ir01thxxfd
                    section.data(31).logicalSrcIdx = 30;
                    section.data(31).dtTransOffset = 47;

            nTotData = nTotData + section.nData;
            sigMap.sections(1) = section;
            clear section


            ;%
            ;% Non-auto Data (signal)
            ;%


        ;%
        ;% Add final counts to struct.
        ;%
        sigMap.nTotData = nTotData;



    ;%*******************
    ;% Create DWork Map *
    ;%*******************
    
        nTotData      = 0; %add to this count as we go
        nTotSects     = 5;
        sectIdxOffset = 1;

        ;%
        ;% Define dummy sections & preallocate arrays
        ;%
        dumSection.nData = -1;
        dumSection.data  = [];

        dumData.logicalSrcIdx = -1;
        dumData.dtTransOffset = -1;

        ;%
        ;% Init/prealloc dworkMap
        ;%
        dworkMap.nSections           = nTotSects;
        dworkMap.sectIdxOffset       = sectIdxOffset;
            dworkMap.sections(nTotSects) = dumSection; %prealloc
        dworkMap.nTotData            = -1;

        ;%
        ;% Auto data (rtDW)
        ;%
            section.nData     = 7;
            section.data(7)  = dumData; %prealloc

                    ;% rtDW.pq0qc0q4qt
                    section.data(1).logicalSrcIdx = 0;
                    section.data(1).dtTransOffset = 0;

                    ;% rtDW.eowmvoivfm
                    section.data(2).logicalSrcIdx = 1;
                    section.data(2).dtTransOffset = 1;

                    ;% rtDW.ooiulikieu
                    section.data(3).logicalSrcIdx = 2;
                    section.data(3).dtTransOffset = 2;

                    ;% rtDW.po5e0yb1lh
                    section.data(4).logicalSrcIdx = 3;
                    section.data(4).dtTransOffset = 3;

                    ;% rtDW.okrwv1hpip
                    section.data(5).logicalSrcIdx = 4;
                    section.data(5).dtTransOffset = 4;

                    ;% rtDW.fqew3rv1xn
                    section.data(6).logicalSrcIdx = 5;
                    section.data(6).dtTransOffset = 5;

                    ;% rtDW.e1ionbamw0
                    section.data(7).logicalSrcIdx = 6;
                    section.data(7).dtTransOffset = 6;

            nTotData = nTotData + section.nData;
            dworkMap.sections(1) = section;
            clear section

            section.nData     = 12;
            section.data(12)  = dumData; %prealloc

                    ;% rtDW.heo4xx0bdx.AS
                    section.data(1).logicalSrcIdx = 7;
                    section.data(1).dtTransOffset = 0;

                    ;% rtDW.iu1a3gpbyb.LoggedData
                    section.data(2).logicalSrcIdx = 8;
                    section.data(2).dtTransOffset = 1;

                    ;% rtDW.krqyebzcfh.LoggedData
                    section.data(3).logicalSrcIdx = 9;
                    section.data(3).dtTransOffset = 2;

                    ;% rtDW.ctn1drudv3.LoggedData
                    section.data(4).logicalSrcIdx = 10;
                    section.data(4).dtTransOffset = 3;

                    ;% rtDW.n1pkjceb5l.LoggedData
                    section.data(5).logicalSrcIdx = 11;
                    section.data(5).dtTransOffset = 4;

                    ;% rtDW.dq4m3zuivh.LoggedData
                    section.data(6).logicalSrcIdx = 12;
                    section.data(6).dtTransOffset = 5;

                    ;% rtDW.dxslhfm5qj.LoggedData
                    section.data(7).logicalSrcIdx = 13;
                    section.data(7).dtTransOffset = 6;

                    ;% rtDW.aohdmqtcde.LoggedData
                    section.data(8).logicalSrcIdx = 14;
                    section.data(8).dtTransOffset = 7;

                    ;% rtDW.hjg0tma4tm.LoggedData
                    section.data(9).logicalSrcIdx = 15;
                    section.data(9).dtTransOffset = 8;

                    ;% rtDW.cw3ed4sabr.LoggedData
                    section.data(10).logicalSrcIdx = 16;
                    section.data(10).dtTransOffset = 9;

                    ;% rtDW.bwivxjyiwb.LoggedData
                    section.data(11).logicalSrcIdx = 17;
                    section.data(11).dtTransOffset = 10;

                    ;% rtDW.pzfuavsvt0.LoggedData
                    section.data(12).logicalSrcIdx = 18;
                    section.data(12).dtTransOffset = 11;

            nTotData = nTotData + section.nData;
            dworkMap.sections(2) = section;
            clear section

            section.nData     = 1;
            section.data(1)  = dumData; %prealloc

                    ;% rtDW.jy5c5fihyg
                    section.data(1).logicalSrcIdx = 19;
                    section.data(1).dtTransOffset = 0;

            nTotData = nTotData + section.nData;
            dworkMap.sections(3) = section;
            clear section

            section.nData     = 4;
            section.data(4)  = dumData; %prealloc

                    ;% rtDW.k0ry3y4g00
                    section.data(1).logicalSrcIdx = 20;
                    section.data(1).dtTransOffset = 0;

                    ;% rtDW.igdieiwmgk
                    section.data(2).logicalSrcIdx = 21;
                    section.data(2).dtTransOffset = 1;

                    ;% rtDW.ptj1w5chqw
                    section.data(3).logicalSrcIdx = 22;
                    section.data(3).dtTransOffset = 2;

                    ;% rtDW.myvb1smtw3
                    section.data(4).logicalSrcIdx = 23;
                    section.data(4).dtTransOffset = 3;

            nTotData = nTotData + section.nData;
            dworkMap.sections(4) = section;
            clear section

            section.nData     = 3;
            section.data(3)  = dumData; %prealloc

                    ;% rtDW.afmy0cnqxp
                    section.data(1).logicalSrcIdx = 24;
                    section.data(1).dtTransOffset = 0;

                    ;% rtDW.jus0vqnxsi
                    section.data(2).logicalSrcIdx = 25;
                    section.data(2).dtTransOffset = 1;

                    ;% rtDW.krwklz2yp0
                    section.data(3).logicalSrcIdx = 26;
                    section.data(3).dtTransOffset = 2;

            nTotData = nTotData + section.nData;
            dworkMap.sections(5) = section;
            clear section


            ;%
            ;% Non-auto Data (dwork)
            ;%


        ;%
        ;% Add final counts to struct.
        ;%
        dworkMap.nTotData = nTotData;



    ;%
    ;% Add individual maps to base struct.
    ;%

    targMap.paramMap  = paramMap;
    targMap.signalMap = sigMap;
    targMap.dworkMap  = dworkMap;

    ;%
    ;% Add checksums to base struct.
    ;%


    targMap.checksum0 = 4252159461;
    targMap.checksum1 = 500321272;
    targMap.checksum2 = 3214158740;
    targMap.checksum3 = 463824658;

